﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace T.FAS.Runtime.Metadata.Dao
{
    public class UserCache
    {
     
        // 值类型的线程静态数据
        [ThreadStatic]
        private static string UserID = "T";
        [ThreadStatic]
        private static string UserName = "T";

        
        public static void SetUserID(string value) {
            UserID = value;
        }
        public static string GetUserID() {
            return UserID;
        }
        public static void SetUserName(string value)
        {
            UserName = value;
        }
        public static string GetUserName()
        {
            return UserName;
        }
    }
}
